<div class="left-sidebar-scroll">
    <div class="left-sidebar-content">
        <ul class="sidebar-elements">
            @foreach(app ('hd-menu')->all() as $k=>$v)
            {{--<li class="divider">{{$k}}</li>--}}
            @foreach($v as $vv)
            <li class="parent">
                <a href="#"><i class="iconfont {{$vv['icon']}}"></i><span>{{$vv['title']}}</span></a>
                <ul class="sub-menu">
                    @foreach($vv['menus'] as $vvv)
                        @if(\HDModule::hadPermission($vvv['permission'],'admin'))
                    <li>
                        <a pjax href="{{$vvv['url']}}">{{$vvv['title']}}</a>
                    </li>
                        @endif
                        @endforeach
                </ul>
            </li>
            @endforeach
            @endforeach
        </ul>
    </div>
</div>